const webpack = require('webpack');
const path = require('path');

module.exports = {
	entry: ['babel-polyfill',`${__dirname}/app/app.js`],

	output: {
		filename: 'bundle.js',
		path: path.join(__dirname, './dist'),
		publicPath: 'https://www.itkedian.com/'
	},
	resolve: {
		extensions: ['.js', '.jsx']
	},

	module: {
		rules: [
		  {
		    test: /\.js$/,
		    use: [
		      'babel-loader',
		    ],
		    exclude: /node_modules/
		  },
		  {
		    test: /\.css$/,
		    use: [
		      'style-loader',
		      'css-loader?modules',
		      'postcss-loader',
		    ],
		  },
		  {
			  test: /\.(jpg|jpeg|png|svg)$/,
			  loader: 'url-loader',
			  options: {
			    limit: 25000,
			  },
			}
		],
	}
}